{% extends "admin/challenges/update.html" %}

{% block value %}
<div class="form-group">
	<label for="value">当前分值<br>
		<small class="form-text text-muted">
			现在的这道题目值多少分
		</small>
	</label>
	<input type="number" class="form-control chal-value" name="value" value="{{ challenge.value }}" disabled>
</div>

<div class="form-group">
	<label for="value">初始分值<br>
		<small class="form-text text-muted">
			题目初始分值是多少分
		</small>
	</label>
	<input type="number" class="form-control chal-initial" name="initial" value="{{ challenge.initial }}" required>
</div>

<div class="form-group">
	<label for="value">衰减极限<br>
		<small class="form-text text-muted">
			如设定10，题目被解出数量达到10时，此时分值降到最小值
		</small>
	</label>
	<input type="number" class="form-control chal-decay" name="decay" value="{{ challenge.decay }}" required>
</div>

<div class="form-group">
	<label for="value">最低分值<br>
		<small class="form-text text-muted">
			这已经是这道题目的最低分数
		</small>
	</label>
	<input type="number" class="form-control chal-minimum" name="minimum" value="{{ challenge.minimum }}" required>
</div>
{% endblock %}